//
//  HTDataBase_DB.h
//  豆瓣
//
//  Created by dllo on 16/1/9.
//  Copyright © 2016年 HaiTeng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Model_DB.h"
#import <sqlite3.h>
@interface HTDataBase_DB : NSObject
{
    sqlite3 *db_DB;
}

+ (HTDataBase_DB *)shareData;


- (void)opDataBase;

- (void)closeDataBase;

- (void)createDataBase;

- (void)insertModel:(Model_DB *)model Table:(NSString *)tableName;

- (void)deleteModel:(Model_DB *)model Table:(NSString *)tableName;

- (NSMutableArray *)selectModel:(Model_DB *)model Table:(NSString *)tableName;

- (NSMutableArray *)selectAllFromTable:(NSString *)tableName;

@end
